package com.aabte.openfeignlearn.example.interfaces;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Daniel
 */
@FeignClient(name = "hello-service", url = "${provider.url}")
@RequestMapping(value = "/hello")
public interface HelloService {

    @RequestMapping(method = RequestMethod.GET, value = "/200")
    ResponseBean<Person> hello200();

    @RequestMapping(method = RequestMethod.GET, value = "/400")
    ResponseBean<Person> hello400();

    @RequestMapping(method = RequestMethod.GET, value = "/404")
    ResponseBean<Person> hello404();

    @RequestMapping(method = RequestMethod.GET, value = "/500")
    ResponseBean<Person> hello500();

}
